package game;

import org.newdawn.slick.*;
import org.newdawn.slick.state.*;
import org.lwjgl.input.Mouse;

public class Menu extends BasicGameState {

	Image titleScreen;
	
	public Menu (int state){
		}
	
	@Override
	public void init(GameContainer gc, StateBasedGame sbg) throws SlickException{	
		
		//titleScreen = new Image("res/title/titleScreen.png");
	
	}
	
	@Override
	public void render(GameContainer gc, StateBasedGame sbg, Graphics g) throws SlickException{
		
		int posX = Mouse.getX();
		int posY = Mouse.getY();
		
		//titleScreen.draw(0, 0);
		
		g.drawString("X:" + posX + " Y:" + posY, 400, 20);
		
	
	}
	
	@Override
	public void update(GameContainer gc, StateBasedGame sbg, int delta) throws SlickException{
		
		int posX = Mouse.getX();
		int posY = Mouse.getY();
		
		
		if( (posX > 100 && posX<311) && (posY >209 && posY < 260) ){
			
			//if(Mouse.isButtonDown(0)){sbg.enterState(1);}
		}
		
		
		if( (posX > 100 && posX < 311) && (posY > 109 && posY < 160) ){
					
					//if(Mouse.isButtonDown(0)){System.exit(0);}
		}
		
	}
	

	@Override
	public int getID() {return 3;}	
}
